class PageRouter:

    # 登录
    login = "/admin/user/login"
    # 旧模式登录
    login_old = "/admin/user/login?mode=old"

    # 策略管理列表
    policyList = "/admin/strategy/list"
    # 创建策略页面
    policyCreate = "/admin/strategy/create"
    # 资产配置方案管理列表
    asset_list = "/admin/strategy/asset/allocation"

    # 组合管理列表
    poList = "/admin/po/list"
    # 组合业绩表现
    performanceList = "/admin/po/performance"
    # 复合模型列表
    composite_model_list = "/admin/po/mom/list"
    # 创建复合模型
    create_composite_model = "/admin/po/mom/list/create"
    # 创建组合页面
    poCreate = "/admin/po/create"
    # 批量调仓页面
    batchAdjustPo = "/admin/po/batchAdjustPo"

    # 管理关注基金
    alternativeFunds = "/admin/fund/alternativeFunds"
    # 盈米重点库
    significantFundList = "/admin/fund/significantFundList"

    # 调仓发车审核列表
    adjustList = "/admin/audit/adjust/list"
    # 操作审核列表
    operationList = "/admin/audit/operation/list"

    # 组合监控列表
    monitorList = "/admin/risk/po/monitor/list"

    # 账户调仓
    account_adjust = "/admin/accountManagement/adjust"

    # 资产配置方案管理列表
    cmaList = "/admin/strategy/asset/allocation"


    @staticmethod
    def poDetail(poCode):
        '''组合详情router'''
        return "/admin/po/list/detail/%s?poCode=%s&isOpenNewWindow=true" % (poCode, poCode)

    @staticmethod
    def policy_detail_router(policy_code):
        """策略详情router"""
        router = "/admin/strategy/list/detail/%s?strategyCode=%s&isOpenNewWindow=true" % (policy_code, policy_code)
        return router

    @staticmethod
    def signal_adjust_records(po_code):
        """发车记录router"""
        router = "/admin/po/list/signalPoAdjustRecords/%s/signal" % po_code
        return router

    @staticmethod
    def signal_records_detail(poCode, sid):
        '''发车记录详情router'''
        router = "/admin/po/list/signalAdjustRecord/%s/detail/%s/record?poCode=%s&adjustId=%s&adjustmentMode=signal&from=record&isOpenNewWindow=true" % (
        poCode, sid, poCode, sid)
        return router

    @staticmethod
    def poAdjustRecords(poCode):
        '''组合调仓记录router'''
        router = "/admin/po/list/poAdjustRecords/%s/adjust" % poCode
        return router

    @staticmethod
    def pension_curve_details(curve):
        """养老下滑曲线详情"""
        router = "/admin/pensionCurve/list/detail/%s?strategyCode=%s&isOpenNewWindow=true" % (curve, curve)
        return router

    @staticmethod
    def po_monitor_details(po_code):
        """组合监控详情"""
        router = "/admin/risk/po/monitor/list/detail/%s?poCode=%s&isOpenNewWindow=true" % (po_code, po_code)
        return router

    @staticmethod
    def audit_detail(audit_id):
        """操作审核单详情"""
        router = "/admin/audit/operation/list/%s" % (audit_id)
        return router

    @staticmethod
    def relate_po_router(policy_code):
        """关联组合详情"""
        router = "/admin/strategy/list/po/%s" % policy_code
        return router

    @staticmethod
    def relate_sample_po_router(policy_code):
        """关联样例组合详情"""
        router = "/admin/strategy/list/samplePo/%s" % policy_code
        return router

    @staticmethod
    def adjust_audit_detail_router(audit_id, po_code):
        """调仓审核详情、预约调仓审核详情"""
        router = "/admin/audit/adjust/list/po/%s/audit-%s" % (po_code, audit_id)
        return router

    @staticmethod
    def signal_audit_detail_router(audit_id, po_code):
        """发车审核详情、预约发车审核详情"""
        router = "/admin/audit/adjust/list/signal/%s/%s/audit" % (po_code, audit_id)
        return router

    @staticmethod
    def account_audit_detail_router(audit_id, po_code):
        """账户调仓审核详情"""
        router = "/admin/audit/adjust/list/account/%s/%s" % (po_code, audit_id)
        return router

    @staticmethod
    def rgb_list_router(policy_code):
        """四维择时信号管理列表"""
        router = "/admin/strategy/list/detail/%s/rgbSignal/list" % policy_code
        return router

    @staticmethod
    def rgb_audit_router(policy_code, audit_id):
        """择时信号审核详情"""
        router = "/admin/audit/adjust/list/rgbSignal/%s/%s" % (policy_code, audit_id)
        return router

    @staticmethod
    def mom_detail_router(prod_code):
        """复合模型详情"""
        router = "/admin/po/mom/list/detail/%s?poCode=%s&isOpenNewWindow=true" % (prod_code, prod_code)
        return router

    @staticmethod
    def mom_adjust_router(prod_code):
        """复合模型调仓"""
        router = "/admin/po/mom/list/adjust?isOpenNewWindow=true&poCode=%s" % prod_code
        return router

    @staticmethod
    def mom_adjust_record_router(prod_code):
        """复合模型调仓"""
        router = "/admin/po/mom/list/adjustRecords/%s/mom_adjust" % prod_code
        return router

    @staticmethod
    def cma_detail_router(prod_code):
        """资本市场假设详情"""
        router = "/admin/strategy/asset/allocation/cma/detail/%s?isOpenNewWindow=true&cmaId=%s" % (prod_code, prod_code)
        return router

    @staticmethod
    def aap_detail_router(prod_code):
        """资产配置方案详情"""
        router = "/admin/strategy/asset/allocation/assetMix/%s?isOpenNewWindow=true&aapId=%s" % (prod_code, prod_code)
        return router
